<!doctype html>
<html>

<head>
    <#import "spring.ftl" as spring>
        <title>
            <@spring.message code="title" />
        </title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" type="text/css" href="/bootstrap-3.3.7-dist/css/bootstrap.min.css">
        <link rel=stylesheet type=text/css href="style.css" />
        <link rel="stylesheet" type="text/css" href="highlight-theme-github.css" />
        <script src="highlight.pack.js"></script>
</head>

<body>
    <div class="container">
        <div class="row">
            <#include "/nav.ftl">
        </div>
        <h2>
            <@spring.message code="user.loginname" />
        </h2>
        <#if loginStatus??>
            <#if loginStatus==false>
                <div class="alert alert-danger" role="alert">登录失败</div>
            </#if>
        </#if>

        <div class="well">
            <form action="/sign/in" method=post>
                <div class="form-group">
                    <label for="username"><@spring.message code="user.username" /></label>
                    <input type="text" name="username" class="form-control">
                </div>
                <div class="form-group">
                    <label for="password"><@spring.message code="user.password" /></label>
                    <input type="password" name="password" class="form-control">
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-lg btn-primary"><@spring.message code="system.login"/></button>
                </div>
            </form>
        </div>
    </div>


    <script src="/jquery-2.2.4.min.js"></script>
    <script src="/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <script src="/8cea844162.js"></script>
    <script src="/fastclick.min.js"></script>
    <script>
        $(".changeLang").on("click", function() {
            switch ($(this).text()) {
                case "中文":
                    {
                        window.location.href = "login?_lang=zh_CN";
                        break;
                    }
                case "English":
                    {
                        window.location.href = "login?_lang=en_US";
                        break;
                    }
            }
        })
    </script>
</body>

</html>

<!-- 
    当前方法：通过load()函数，引入公共文件;
代码预览：
$(".headerpage").load("header.html");
$(".footerpage").load("footer.html");
 -->